package com.xbmzdx.fstj_app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljq
 * @since 2022-03-13
 */
@ToString
@Getter
@Setter
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("comments")
@ApiModel(value = "Comments对象", description = "")
public class Comments implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("评论ID")
    @TableId(value = "commentId", type = IdType.ID_WORKER_STR)
    private String commentId;

    @ApiModelProperty("发表言论ID")
    @TableField("newsId")
    private String newsId;

    @ApiModelProperty("父评论ID")
    @TableField("parentId")
    private String parentId;

    @ApiModelProperty("评论的内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("发出该评论用户的id")
    @TableField("userId")
    private String userId;

    @ApiModelProperty("评论产生日期")
    @TableField("date")
    private LocalDateTime date;

    @ApiModelProperty("0:未删除。1:已删除")
    @TableField("isdelete")
    @TableLogic
    private Integer isdelete;

    @TableField("version")
    private Integer version;
}
